export const shape = 'bangtiao';
export const label = '棒条给料';
export const image = '/assets/manager/014.png';

export const config = {
  inherit: 'rect',
  width: 60,
  height: 60,
  markup: [
    {
      tagName: 'image',
    },
  ],
  attrs: {
    body: {
      stroke: '#5F95FF',
      fill: '#5F95FF',
    },
    image: {
      refWidth: 1,
      refHeight: 1,
    },
    label: {
      refX: 3,
      refY: 2,
      textAnchor: 'left',
      textVerticalAnchor: 'top',
      fontSize: 12,
      fill: '#000',
    },
  },
  ports: {
    groups: {
      top: {
        position: 'top',
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: '#5F95FF',
            strokeWidth: 1,
            fill: '#fff',
            style: {
              visibility: 'hidden',
            },
          },
        },
      },
      right: {
        position: 'right',
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: '#5F95FF',
            strokeWidth: 1,
            fill: '#fff',
            style: {
              visibility: 'hidden',
            },
          },
        },
      },
      bottom: {
        position: 'bottom',
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: '#5F95FF',
            strokeWidth: 1,
            fill: '#fff',
            style: {
              visibility: 'hidden',
            },
          },
        },
      },
      left: {
        position: 'left',
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: '#5F95FF',
            strokeWidth: 1,
            fill: '#fff',
            style: {
              visibility: 'hidden',
            },
          },
        },
      },
    },
    items: [
      {
        group: 'top',
        tip: '输入口',
        args: {
          dx: -20,
        },
      },
      {
        outId: '1',
        group: 'right',
        args: {
          dy: 0,
        },
        tip: '上层输出',
      },
      {
        outId: '2',
        group: 'bottom',
        tip: '底部输出',
        args: {
          dx: -10,
        },
      },
    ],
  },
}; 